<div class="bjui-pageHeader" style="background-color: #fefefe; border-bottom: none;">
    <form action="/admin/personnel/report/list" data-toggle="ajaxsearch" id="findglobalform" data-options="{
    validate:false,
    searchDatagrid:$.CurrentNavtab.find('#list'),

    }">
        <fieldset>
            <legend style="font-weight:normal;">搜索：</legend>
            <div style="margin:0; padding:1px 5px 5px;">
                {{--<span>起始时间(按添加时间筛选)</span>--}}
                {{--<input type="text" value="" name="start_time" data-toggle="datepicker" placeholder="点击选择日期"--}}
                       {{--data-rule="date">--}}
                {{--<span>结束时间(按添加时间筛选)</span>--}}
                {{--<input type="text" value="" name="end_time" data-toggle="datepicker" placeholder="点击选择日期"--}}
                       {{--data-rule="date">--}}
                <span>类型:</span>
                <select name="type" data-toggle="selectpicker">
                    <option value="">全部</option>
                    <option value="1">日报</option>
                    <option value="2">周报</option>
                    <option value="3">月报</option>
                </select>
                <span>部门:</span>
                <input name="deportment" size="10">&nbsp;

                <span>姓名:</span>
                <input name="user_name" size="10">&nbsp;

                <div class="btn-group">
                    <button type="submit" class="btn-green" data-icon="search">查询！</button>

                </div>
            </div>
        </fieldset>
    </form>
</div>
<div class="bjui-pageContent">
    <table class="table table-bordered" id="list" data-toggle="datagrid" data-options="{
    height: '100%',

    fullGrid:true,
    filterThead:false,
    fieldSortable:false,
    columnMenu:false,
    local: 'remote',
    dataUrl:'/admin/personnel/report/list',
    editUrl:'/admin/personnel/report/list',

    linenumberAll: true
}">
        <thead>
        <th data-options="{name:'user_name',align:'center',width:70}">姓名</th>
        <th data-options="{name:'deportment',align:'center',width:70}">部门</th>
        <th data-options="{name:'title',align:'center',width:70}">标题</th>
        <th data-options="{name:'type',align:'center',width:70,items:[{'0':'不明'},{'1':'日报'},{'2':'周报'},{'3':'月报'}]}">类型</th>
        <th data-options="{name:'created_date',align:'center',width:70}">创建时间</th>
        <th data-options="{align:'center',render:operationColumn}">操作</th>
        </thead>
    </table>
</div>
<script>
    function operationColumn(value, data) {
        var html = '<button type="button" class="btn btn-green" data-toggle="dialog" data-options="{id:\'detail\', url:\'/admin/personnel/report/detail\', mask:true, width:800, height:400, title:\'查看日志详情\', data:{id:' + data.id + '}}"><i class="fa fa-edit"></i>查看详情</button>';

//        html += '<button type="button" class="btn btn-red bjui-datagrid-btn delete"  data-toggle="del.datagrid.tr" ><i class="fa fa-remove"></i>删除</button>';
        return html;
    }



</script>